cmake_minimum_required(VERSION 2.8)
project(Gb28181)

	
if(MSVC)
	include_directories(include)
	link_directories(${CMAKE_CURRENT_LIST_DIR}/lib)
else(MSVC)
	add_custom_command(TARGET T1
	  PRE_BUILD 
	  COMMAND echo "hello"
	  COMMENT "This command will be executed before build target T1"
	)
	add_compile_options(-g)
	link_directories(/usr/local/lib)
	link_directories(/usr/lib/x86_64-linux-gnu)
	include_directories(/usr/local/include)
endif(MSVC)


add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS -D__STDC_LIMIT_MACROS -std=c++11)

add_subdirectory(Gb28181)
add_subdirectory(GbTest)


